<template>
  <div />
</template>

<script>
import { find_one_api } from '../api'

export default {
  data: function() {
    return {
      levels: []
    }
  },
  created() {
    this.render()
  },
  methods: {
    render() {
      const { doc_id, spaceid, type } = this.$route.query
      this.levels = this.$route.params.levels

      find_one_api(spaceid, type, doc_id).then(data => {
        this.form.doc_title = data.data.doc_title
        this.doc_id = data.data.doc_id
        this.doc_parent_id = data.data.doc_parent_id
        this.markdown = data.data.doc_markdown
      })
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
